home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 18
/
018.d81
/
text reader
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
95 lines
0 rem contents map reader
1 ifpeek(51201)<>12orpeek(51202)<>200thenload"routines v4",8,1
2 d$=chr$(96):forx=1to6:d$=d$+d$:next
3 open15,8,15
4 poke650,255
5 da$=" --------------------------------------"
6 li=52016:su=51206:sd=51209:cl=51203
7 forc=217to242:pokel,peek(l)or128:next
8 print"[147][154]";:poke53281,0:poke53282,9
9 poke1020,4:poke1021,21:poke1022,1:poke1023,38
10 sys52176:fi=usr(65535)
11 iffi=11thenfi$="contents map.t"
12 iffi=12thenfi$="t.cat tool boot"
13 iffi=13thenfi$="math reflect"
14 iffi=14thenfi$="comp.eyes.review"
20 dm=500:dimin$(dm)
30 gosub5000:remopening blurb
40 gosub6000:remload file
45 print"[147]";:goto50
46 print"[176]";left$(d$,38);"[174]";
47 fori=1to18:print"[221] [221]";:next
48 print"[173]";left$(d$,38);"[189]";:print"";:forl=217to242:pokel,128orpeek(l):next
49 return
50 gosub7000:gosub46:print"";:
800 print:forc1=0to16:print""in$(c1):next:print""in$(c1);:lp=0
810 poke646,1:syscl:print"";
850 getk$:print"[158]";:ifk$=""then850
860 ifk$="[145]"ork$=""ork$="[134]"ork$="[138]"thengosub11000:goto850
865 ifk$="[137]"ork$="[133]"thenforcc=1to18:gosub11000:next:goto850
870 ifk$=""ork$="[157]"ork$="[139]"ork$="[135]"thengosub10000:goto850
875 ifk$="[136]"ork$="[140]"thenforcc=1to18:gosub10000:next:goto850
877 ifk$="p"thengosub2000:print"[147]":goto50
878 ifk$="x"ork$="[216]"then63000
879 ifk$="\"ork$="[169]"thengosub12000: goto850
880 print"[158]";:gosub7000:print"[146][154]";:gosub7000:goto850
1000 :
2000 rem hard(NULL)
2010 print""da$:print"[212]urn on your printer and press[160]<return>"
2011 getk$:ifk$=""then2011
2012 ifk$<>chr$(13)then2090
2015 print"---------------------------------------"
2020 print"";
2030 open4,4,7:print#4,chr$(17);
2040 lp=0:page=0
2050 for pp=0toll
2052 print#4,in$(pp):page=page+1
2054 ifpage=60thenprint#4,"":page=0
2056 next pp:print#4:close4
2090 return
3000 rem print lines
3010 print#4,in$(i);spc(40-len(in$(i)));in$(i+rs)
3020 return
5000 print""da$:print" --[204]oading some text--"
5010 print" ----------[208]lease be patient.----------"
5045 print:print:print"[208]ress 'x' to exit now without reading"
5050 print:print"this article."
5060 return
6000 open8,8,8,fi$
6030 ll=0:poke781,8:sys65478
6040 sysli,b$:in$(ll)=mid$(b$,1)
6044 ifpeek(198)<>0thenifpeek(631)=88then6100
6045 ifst=0thenll=ll+1:goto6040
6100 sys65484:close8:close15
6105 lc=ll:nl=ll
6110 return
6150 sys65484:close8:close15
7000 print" -----[208]ress f1-f7 keys to move text----"
7005 print" -------[208]ress 'p' to print text.-------"
7010 print" ----------[208]ress 'x' to exit-----------"
7015 printda$
7020 return
10000 poke646,1:syscl:print"";: iflp>=lc-15then10015
10002 print"";: lp=lp+1:syssu
10005 ifleft$(in$(lp+17),4)="\oad"then print"":goto10020
10010 printin$(lp+17):goto10020
10015 poke53280,rnd(1)*15
10020 return
10030 :
11000 poke646,1:syscl:print"";: iflp<=1then11015
11002 print"";:lp=lp-1:syssd
11005 ifleft$(in$(lp),4)="\oad"then print"":goto10020
11010 printin$(lp):goto11020
11015 poke53280,rnd(1)*15
11020 return
12000 rem can you run it now?
12010 forx=lptolp+15:ifleft$(in$(x),4)= "\oad"then13000
12020 next:return
13000 rem yes, you can run it now!
13010 print"[147]l"mid$(in$(x),2): print"run"
13020 goto63020
63000 poke650,128:f$="hello"
63005 iffi=14thenf$="comp.eyes.menu"
63010 print"[147]load"chr$(34)f$chr$(34) ",8":print"run"
63020 poke631,13:poke632,13:poke198,2: end